﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework.Input;

using TowerDef_s_enseLibrary;

namespace TowerDef_s_enseLibrary.core
{   
    public class MouseInfos
    {
        private MouseState ms;

        /// <summary>
        /// Write down the mouse coordinates in the console window
        /// </summary>
        public void WriteMouseCoordsInConsole()
        {
            ms = Mouse.GetState();
            Console.WriteLine("X:" + ms.X + " Y:" + ms.Y);
        }
        
        /// <summary>
        /// Get the mouse coordinates as string
        /// </summary>
        /// <returns>Mouse coordinates X and Y</returns>
        public string GetMouseCoords()
        {
            ms = Mouse.GetState();
            return "X : " + ms.X.ToString() + "    Y  : " + ms.Y.ToString();
        }
    }
}
